﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="style_list.aspx.cs" Inherits="manage_channel_style_list" %>
<%@ Register Src="../../controls/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath());%>/css/css.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table id="top1" width="100%"  border="0" cellpadding="0" cellspacing="0" class="toptable">
        <tr>
          <td height="1" colspan="2"></td>
        </tr>
        <tr>
          <td width="57%" class="sysmain_navi" style="padding-left:14px;">样式管理</td>
          <td width="43%">位置导航：<a href="../main.aspx" class="list_link" target="sys_main">首页</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="list.aspx" class="list_link" target="sys_main">频道列表</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="style_list.aspx?ChID=<%Response.Write(Request.QueryString["ChID"]); %>" class="list_link" target="sys_main">样式列表</a></td>
        </tr>
    </table>
    <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="Navitable">
      <tr>
        <td  style="padding-left:12px;">
        <span class="reshow">查询：</span>
        <asp:DropDownList ID="gClassID" runat="server" onchange="getClass(this);">
        <asp:ListItem Value=""> - 选择栏目 - </asp:ListItem>
        </asp:DropDownList>
        &nbsp;<a href="style_add.aspx?ChID=<%Response.Write(Request.QueryString["ChID"]); %>&ClassID=<% Response.Write(Request.QueryString["ClassID"]); %>" class="reshow" >添加样式</a>
        <span runat="server" id="classAll">&nbsp;┋&nbsp;<a class="topnavichar" href="style_list.aspx?ChID=<%Response.Write(Request.QueryString["ChID"]); %>" title="所有样式">全部</a></span>
        <span runat="server" id="Span2">&nbsp;┋&nbsp;<a class="topnavichar" href="style_list.aspx?ChID=<%Response.Write(Request.QueryString["ChID"]); %>&ClassID=<% Response.Write(Request.QueryString["ClassID"]); %>" title="本栏目所有样式">样式列表</a></span>
        <span runat="server" id="Span1">&nbsp;┋&nbsp;<a class="topnavichar" href="style_classadd.aspx?ChID=<%Response.Write(Request.QueryString["ChID"]); %>&ClassID=<% Response.Write(Request.QueryString["ClassID"]); %>" title="创建样式栏目">创建样式栏目</a></span>
        <span runat="server" id="Span3">&nbsp;┋&nbsp;<a class="topnavichar" href="style_classlist.aspx?ChID=<%Response.Write(Request.QueryString["ChID"]); %>" title="管理栏目">管理栏目</a></span>
        </td>
      </tr>
      <tr>
      <td  style="padding-left:12px;">
        <span class="reshow">操作：</span><asp:LinkButton ID="LinkButton6" runat="server" CssClass="topnavichar" OnClick="delContent" OnClientClick="{if(confirm('警告：确定要删除吗?')){return true;}return false;}">删除</asp:LinkButton>
        &nbsp;┋&nbsp;<asp:LinkButton ID="LinkButton5" runat="server" CssClass="topnavichar" OnClick="Reset_allContent" OnClientClick="{if(confirm('警告：确认要初始化吗?\n将删除站点中的所有标签!\n如果选择了栏目，则只初始化选定栏目的标签，否则初始化所有标签。')){return true;}return false;}">初始化</asp:LinkButton>
        &nbsp;┋&nbsp;<asp:LinkButton ID="LinkButton1" runat="server" CssClass="topnavichar" OnClick="Lock_allContent" OnClientClick="{if(confirm('警告：确认要锁定吗？')){return true;}return false;}">锁定</asp:LinkButton>
        &nbsp;┋&nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CssClass="topnavichar" OnClick="UnLock_allContent" OnClientClick="{if(confirm('警告：确认要解锁吗？')){return true;}return false;}">解锁</asp:LinkButton>
        <asp:TextBox ID="keywords" runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" Text="查询" OnClick="Search_Click" />
      </td>
      </tr>
      </table>
      <asp:Repeater ID="DataList1" runat="server">
       <HeaderTemplate>
        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
          <tr class="TR_BG" style="text-align:left;">
            <td class="sys_topBg" style="width:30px;">ID</td>
            <td class="sys_topBg" style="width:300px;">标题</td>
            <td class="sys_topBg" style="width:100px;text-align:center;">栏目</td>
            <td class="sys_topBg" style="width:60px;text-align:center;">状态</td>
            <td class="sys_topBg" style="text-align:center;">操作 <input name="Checkboxc" type="checkbox" onclick="javascript:selectAll(this.form,this.checked);" /></td>
          </tr>
        </HeaderTemplate>
          <ItemTemplate>
          <tr class="TR_BG_list" onmouseover="overColor(this)" onmouseout="outColor(this)">
            <td style="text-align:center;"><%#((DataRowView)Container.DataItem)["id"]%></td>
            <td style="font-size:11.5px;"><%#((DataRowView)Container.DataItem)["GstyleName"]%></td>
            <td style="text-align:center;"><%#((DataRowView)Container.DataItem)["ClassName"]%></td>
            <td style="text-align:center;"><%#((DataRowView)Container.DataItem)["islocks"]%></td>
            <td style="text-align:center;"><%#((DataRowView)Container.DataItem)["op"]%>&nbsp;</td>
          </tr>
          <tr class="TR_BG_list" id="div_<%#((DataRowView)Container.DataItem)["id"]%>" style="display:none;">
            <td colspan="5" style="padding:5px 5px;">
              <%#((DataRowView)Container.DataItem)["contents"]%>  
            </td>
          </tr>
          </ItemTemplate>
          <FooterTemplate>
          </table>
          </FooterTemplate>
      </asp:Repeater>
      <div align="right" style="width:98%"><uc1:PageNavigator ID="PageNavigator1" runat="server"/></div>
    <br />
    <br />
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg" style="height: 76px">
       <tr>
         <td align="center"><label id="copyright" runat="server" /></td>
       </tr>
    </table>
    </form>
</body>
</html>
<script type="text/javascript" language="javascript">
function getClass(obj)
{
   window.location.href="style_list.aspx?ClassID="+obj.value+"&ChID=<%Response.Write(Request.QueryString["ChID"]); %>";
}

function preview(divid)
{
    if(document.getElementById(divid).style.display=="")
    {
       document.getElementById(divid).style.display = "none"; 
    }
    else
    {
       document.getElementById(divid).style.display = ""; 
    }
}
</script>